<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Guest_model extends CI_Model {

    public function getBeritaByPage($param, $limit=1, $offset=0) {
        $query = $this->db->get_where('berita', $param, $limit, $offset);
        $result = $query->result_array();
        if ($result)
            return $result[0];
        else
            return false;
    }

}